let baseUrl="http://127.0.0.1:7001"
export function request(config){
  return new Promise ((res,rej)=>{
    wx.request({　
      url: baseUrl + config.url,
      method:config.method || 'GET',
      timeout:config.timeout || 60000,
      data:config.data,
      header:{
        "content-type":"application/x-www-form-urlencoded"
      },
      success:(r)=>{
        res(r)
      },
      fail:(e)=>{
        rej(e)
      }
    })
  })
}